﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

using Bricks.Component.Utils;
using Bricks.Site.Models;
using Bricks.Business.Models.ScheduleManagement;


namespace Bricks.Business.Service
{
    public interface IStatisticsItemMaintenanceService
    {
        IQueryable<StatisticsItemMaintenance> StatisticsItemMaintenances { get; }

        List<StatisticsItemMaintenanceView> GetStatisticsItemMaintenanceList(Guid projectID,string contractType);

        List<StatisticsItemMaintenanceView> GetParentStatisticsItemMaintenanceList(Guid projectID, string contractType);

        StatisticsItemMaintenanceView GetStatisticsItemMaintenance(Guid id);

        string IsBeRef(StatisticsItemMaintenanceView model);

        OperationResult SaveStatisticsItemMaintenance(StatisticsItemMaintenanceView statisticsItemMaintenanceView);

        OperationResult SaveStatisticsItemMaintenanceAndDeleteRefData(StatisticsItemMaintenanceView statisticsItemMaintenanceView);

        OperationResult SaveCopyStatisticsItemMaintenance(Guid projectID, string contractType, Guid copyProjectID, string copyContractType);
        
        OperationResult Delete(Guid id);

        OperationResult SetOrder(Guid id, string upOrDown);
    }
}